package com.aci.test.wordfreq.factory.impl;

import com.aci.test.wordfreq.factory.ISorterFactory;
import com.aci.test.wordfreq.sort.IWordsSorter;
import com.aci.test.wordfreq.sort.impl.ByFrequencySorter;

public class SorterFactory implements ISorterFactory {

	private static final SorterFactory INSTANCE = new SorterFactory();

	private SorterFactory() {
	}

	@Override
	public IWordsSorter createSorter() {
		return new ByFrequencySorter(false);
	}

	public static ISorterFactory getInstance() {
		return INSTANCE;
	}

}
